package com.bupt.smart.network.api;

import com.bupt.smart.model.User;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by ght on 16-4-18.
 */
public interface UserAPI {
    @FormUrlEncoded
    @POST("users/register")
    Call<Map<String, Boolean>> register(@Field("phone") String phone, @Field("password") String password);

    @FormUrlEncoded
    @POST("users/login")
    Call<User> login(@Field("phone") String phone, @Field("password") String password);
}
